<?php
/**
 *  NevuxBB - Free Forum Software
 *  Copyright (C) 2008, 2010 NevuxBB (No one specific author)*  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 * Cached Forum Class
 * File: cache_forums_class.php
 * Purpose: Generate class for serialized object array
 * Todo: Nothing at the moment
 *
 */

class generate_forums extends LanguageCoreLite  {
	private $stats_array;
	private $extra_data;
		
	public function get_lang_var($name, $int) {
		// retrieve local language variables
		return self::get_var($name, $int);
	}
	
	public function get_local_statistics($id) {
		// retrieve statistics about the forum
		switch($id) {
			case 0:
				// total forums
				return;
				break;
			case 1:
				// total members
				return $this->stats_array['board']['registered_members']['data'];
				break;
			case 2:
				// newest member
				return $this->stats_array['board']['newest_member']['data'];
				break;
			case 3:
				// overall topics
				return $this->extra_data['overall_topics'];
				break;
			case 4:
				// overall posts
				return $this->extra_data['overall_posts'];
				break;
		}

	}
}

?>